<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Seja bem-vindo!</title>
</head>
<body>
	
	<%
		String tipo = (String) session.getAttribute("typeUsr");
		switch(tipo.charAt(0)){
		case '0':	// administrador
	%>
		<%@ include file="administrador.jsp" %>
	<%	
			break;
	
		case '1':	// operador
	
	%>
		<%@ include file="operador.jsp" %>
		
	<%
			break;
		
		case '2':	// cliente
	%>
		<%@ include file="cliente.jsp" %>
	
	<%	
			break;
		default:
	%>
		<h2>Você precisa estar logado!</h2>
		
	<%
		break;
		}
	
	
	%>
	
</body>
</html>

